<template>
  <el-dialog title="视频" :model-value="videoVisible">
      <video :src="videoUrl" autoplay
             controls></video>
  </el-dialog>
</template>
<script setup>
import {computed,ref} from 'vue'

const videoUrl=ref('')
const  videoVisible = ref(false)

function openVideo(url){
   console.log('地址',url)
  videoUrl.value=url
   videoVisible.value=true
}

defineExpose({
  openVideo
})
</script>
